package com.tanger.es;

import lombok.Builder;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @Description TODO
 * @Author Hchenbin
 * @Date 2023-12-08 16:20
 * @Version 1.0
 */
@Data
@Builder
public class GoodsCategory {

    //分类ID
    @Field
    private Integer id;
    //分类名称
    @Field(type = FieldType.Text, analyzer = "analyzer_ngram", searchAnalyzer = "analyzer_ngram_search")
    private String categoryName;
    //分类名称英文
    @Field(type = FieldType.Text, analyzer = "analyzer_ngram", searchAnalyzer = "analyzer_ngram_search")
    private String categoryEn;
    //分类编码
    @Field(type = FieldType.Text, analyzer = "analyzer_standard", searchAnalyzer = "analyzer_standard")
    private String categoryCode;
}
